package org.altervista.cp.thinbcgen.proxy;

import java.util.Arrays;

class DefaultExceptionHandler implements ExceptionHandler {

	public Object handle(Proxy proxy, Throwable t, String methodName,
			Object[] params) {
		String msg = "A call to " + methodName + "(" + Arrays.toString(params)
				+ ") method threw an exception";
		t.printStackTrace();
		throw new RuntimeException(msg, t);
	}
}
